package routes

import (
	"github.com/goravel/framework/contracts/route"
	"github.com/goravel/framework/facades"
	"goravel/packages/workflow/middleware"

	"goravel/app/http/controllers"
)

func Api() {
	facades.Route().Middleware(middleware.Jwt()).Prefix("/api").Group(func(router route.Router) {
		userCtrl := controllers.NewUserController()
		router.Resource("/user", userCtrl)
	})

}
